package com.homework1;

/**
 * @author :  DongZheng Wang
 * @PROJECT_NAME: java泛型
 * @date :  2022-10-26 09:45
 **/
public class ann2 {
    public static void main(String[] args) {
        one one = new one();
        one.testOne("汪东正");
    }
}
@interface testones{

}
class one{
    @testones
    public void testOne(@testones String name){
        System.out.println("~~~~~~~~"+name);
    }
    @testones
    private String string;

}